package com.goldsign.pay.provider.msg.rabbit.consumer;

import java.util.Date;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;


@Component
public class RbtConsumer3 {
	@RabbitListener(queues="dev.topic.A")
	public void processA(String content){
		System.out.printf("<== Receiver msg : %s By %s, %s [process method: %s] %n",content,this.getClass().getSimpleName(), new Date().getTime(),Thread.currentThread().getStackTrace()[1].getMethodName());
	}
	
	@RabbitListener(queues="dev.topic.B")
	public void processB(String content){
		System.out.printf("<== Receiver msg : %s By %s, %s [process method: %s] %n",content,this.getClass().getSimpleName(), new Date().getTime(),Thread.currentThread().getStackTrace()[1].getMethodName());
	}
	
	@RabbitListener(queues="dev.topic.B")
	public void processBB(String content){
		System.out.printf("<== Receiver msg : %s By %s, %s [process method: %s] %n",content,this.getClass().getSimpleName(), new Date().getTime(),Thread.currentThread().getStackTrace()[1].getMethodName());
	}
}
